<ion-view title="" class="login-view">
    <ion-content has-bouncing="false" class="u9-content">
        <div class="u9-menu-header">
            <img src="img/login.png">
        </div>
        <form name="loginForm" ng-submit="login(loginForm.$invalid)" novalidate>
            <div class="card u9-card">
                <div class="row">
                    <div class="col account-input-wrapper">
                        <input type="text" placeholder="请输入用户账号" ng-model="data.account" required>
                        <i class="icon ion-ios-close-empty" ng-if="data.account" ng-click="clearUser()"></i>
                    </div>
                </div>
            </div>
            <div class="card u9-card">
                <div class="row">
                    <div class="col">
                        <input type="password" placeholder="请输入用户密码" ng-model="data.password" required>
                    </div>
                </div>
            </div>
            <div class="card u9-card u9-checkbox-card login-checkbox-card">
                <label class="checkbox">
                    <input type="checkbox" ng-model="data.autologin" ng-change="changeLoginState()">
                    <span>自动登录</span>
                </label>
                <label class="checkbox">
                    <input type="checkbox" ng-model="data.rememberpsw" ng-change="changePswState()">
                    <span>记住密码</span>
                </label>
            </div>
            <div class="card u9-card u9-button-card">
                <button class="button button-block" type="submit">登 录</button>
            </div>
        </form>
    </ion-content>
    <ion-footer-bar class="login-footer-bar">
        <ion-list>
            <ion-item>{{data.companyName}}</ion-item>
            <ion-item class="item-icon-right" ng-click="pickCompany()">
                修改
                <i class="icon ion-ios-arrow-right"></i>
            </ion-item>
        </ion-list>
    </ion-footer-bar>
</ion-view>
